<template>
  <h1>文本指令</h1>
  <h4>{{info}}</h4>
  <span>{{info+"中午好"}}</span>
  <hr>
  <button @click="f">点我</button>
  <p v-text="aaa"></p>
  <p>{{aaa}}</p>
  <p v-html="aaa"></p>
</template>

<script setup>
import {ref} from "vue";

const info = ref("我是info666");
const f = ()=>{
  console.log(info);
  info.value = 666;
}

const  aaa = ref("我是<mark>aaa</mark>");
</script>

<style scoped>

</style>